import { RouteRecordRaw } from 'vue-router'
export const Layout = () => import('@/layout/index.vue')

export const financeRoutes: RouteRecordRaw[] = [
  {
    path: '/finance',
    component: Layout,
    redirect: '/finance/withdraw',
    meta: { title: '财务中心', icon: '' },
    children: [
      {
        path: 'withdraw',
        component: () => import('@/views/finance/withdraw.vue'),
        name: 'Withdraw',
        meta: {
          title: '提现管理',
          icon: '',
          affix: false,
          keepAlive: true,
        },
      },
      {
        path: 'withdrawList',
        component: () => import('@/views/finance/withdrawList.vue'),
        name: 'WithdrawList',
        meta: {
          title: '可提现',
          icon: '',
          affix: false,
          keepAlive: true,
          hidden: true,
          activeMenu: 'Withdraw'
        },
      },
      {
        path: 'balance',
        component: () => import('@/views/finance/balance.vue'),
        name: 'Balance',
        meta: {
          title: '余额',
          icon: '',
          affix: false,
          keepAlive: true,
          hidden: true,
          activeMenu: 'Withdraw'
        },
      },
      {
        path: 'payAccount',
        component: () => import('@/views/finance/payAccount.vue'),
        name: 'PayAccount',
        meta: {
          title: '收款账户',
          icon: '',
          affix: false,
          keepAlive: true,
        },
      },
    ],
  },
]
